import request from '@/utils/request'

// 查询订单列表
export function listOrder_goods(query) {
  return request({
    url: '/clothing/order_goods/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder_goods(id) {
  return request({
    url: '/clothing/order_goods/' + id,
    method: 'get'
  })
}

// 新增订单
export function addOrder_goods(data) {
  return request({
    url: '/clothing/order_goods',
    method: 'post',
    data: data
  })
}

// 修改订单
export function updateOrder_goods(data) {
  return request({
    url: '/clothing/order_goods',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delOrder_goods(id) {
  return request({
    url: '/clothing/order_goods/' + id,
    method: 'delete'
  })
}
